<%@page import="com.liferay.portal.kernel.util.ParamUtil"%>
<%@page import="com.liferay.portal.util.PortalUtil"%>
<%@page import="fr.smile.liferay.portlet.news.model.NewsEntry"%>
<%@page import="com.liferay.portal.kernel.util.WebKeys"%>
<%@page import="com.liferay.portal.kernel.dao.search.ResultRow"%>

<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<%@ taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %>
<%@ taglib uri="http://liferay.com/tld/security" prefix="liferay-security" %>
<%@ taglib uri="http://liferay.com/tld/theme" prefix="liferay-theme" %>


<portlet:defineObjects />
<liferay-theme:defineObjects />
<%
ResultRow row = (ResultRow)request.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW);

NewsEntry entry = (NewsEntry) row.getObject();
String currentURL = PortalUtil.getCurrentURL(request);
String tabs1 = ParamUtil.getString(request, "tabs1", "label.manage_newsletters");
%>

<liferay-ui:icon-menu>
	<%--c:if test="<%= NewsEntryPermission.contains(permissionChecker, entry, ActionKeys.UPDATE) %>"> --%>
		<portlet:renderURL var="editURL">
			<portlet:param name="redirect" value="<%= currentURL %>" />
			<portlet:param name="entryId" value="<%= String.valueOf(entry.getEntryId()) %>" />
			<portlet:param name="cmd" value="edit"/>
		</portlet:renderURL>

		<liferay-ui:icon
			image="edit"
			url="<%= editURL %>"
		/>
	<%--/c:if --%>

	<%--c:if test="<%= AnnouncementsEntryPermission.contains(permissionChecker, entry, ActionKeys.DELETE) %>" --%>
		<portlet:actionURL var="deleteURL">
			<portlet:param name="cmd" value="delete" />
			<portlet:param name="redirect" value="<%= currentURL %>" />
			<portlet:param name="entryId" value="<%= String.valueOf(entry.getEntryId()) %>" />
		</portlet:actionURL>

		<liferay-ui:icon-delete
			url="<%= deleteURL %>"
		/>
	<%--/c:if --%>
</liferay-ui:icon-menu>